<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./jQuery.min.js"></script>
    <style>
        div {
            width: 200px;
            height: 200px;
            border: 1px solid skyblue;        
        }
    </style>
</head>
<body>
    <button>点击发送jsonp请求</button>
    <div></div>
    <script>
        $('button').eq(0).click(function(){
            // 固定写法
            $.getJSON('http://127.0.0.1:8000/jquery-jsonp?callback=?', function(data){
                $('div').eq(0).html(`
                   学校名称是：${data.name}<br>
                   城市有：${data.city}
                `);
            });
        });
    </script>
</body>
</html>